﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LoginScreen : MonoBehaviour
{
    [SerializeField]
    private InputField AccountInput;
    [SerializeField]
    private InputField PasswordInput;
    [SerializeField]
    private Button BtnLogin;
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void LoginEnterGame()
    {
        if (AccountInput.text.Length==0||AccountInput.text.Length>6)
        {
            Debug.LogWarning("账号不合法");
            return;
        }
        if (PasswordInput.text.Length == 0 || PasswordInput.text.Length > 6)
        {
            Debug.LogWarning("密码不合法");
            return;
        }
        BtnLogin.interactable = false;
    }
}
